package com.bailun91.auth.controller;

import com.bailun91.auth.entity.JsonData;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("order")

@RestController
public class OrderController {

    @RequestMapping("update")
    @RequiresPermissions("order:*")
    public JsonData update(){
        return JsonData.buildSuccess("更新订单",0);
    }
    @RequestMapping("delete")
    public JsonData delete(){
        return JsonData.buildSuccess("删除订单",0);
    }
    @RequestMapping("insert")
    public JsonData insert(){
        return JsonData.buildSuccess("增加订单",0);
    }
    @RequestMapping("find")
    public JsonData find(){
        return JsonData.buildSuccess("查看订单",0);
    }


}

